package com.java.util;

import com.google.gson.Gson;

/**
 * @ClassName JSONUtil
 * @Description JSON工具类
 * @Author 0715-YuHao
 * @Date 2020/9/8 12:47
 */
public class JSONUtil {
    private static Gson g = new Gson();
    public static String toJSON(Object obj) {
        return g.toJson(obj);
    }
}
